let record = 'N';

function recordUrl() {
    if (record == 'N') {
        let title = $('title').text();
        let detail = $('body').text().replace(/[^\u4e00-\u9fa5]/g, '');
        let link = window.location.href;
        let host = window.location.hostname;
        invoke('postBody', {
            "back-url": "/rest/evVisitLink/v1/",
            title: title,
            /*detail: detail,*/
            link: link,
            host: host,
        });
        record = 'Y';
        setTimeout(() => {
            record = 'N'
        }, 4000);
    }
}

recordUrl();

